package com.dongdongqiang.daogenerator.handler;

import com.dongdongqiang.daogenerator.exception.DDQException;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * 删除
 * Created by ZZB on 2017/9/24.
 */
public interface IDeleteHandler {
    <T> int deleteByPk(Object pk,Class<T> tClass, Connection connection) throws DDQException;
    <T> int[] deleteInPk(List<Object> pk, Class<T> tClass, Connection connection) throws DDQException;
    int delete(Object o, Connection connection) throws DDQException;
}
